package net.sesami.nhg.ebd.batch.domain.hibernate;

import java.io.Serializable;

public class CO_Item_AttachmentPK implements Serializable {
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private Integer CO_ID;
	private Integer LineNum;
	private Integer AttachmentID;

	public Integer getCO_ID() {
		return CO_ID;
	}

	public void setCO_ID(Integer cO_ID) {
		CO_ID = cO_ID;
	}

	public Integer getLineNum() {
		return LineNum;
	}

	public void setLineNum(Integer lineNum) {
		LineNum = lineNum;
	}

	public Integer getAttachmentID() {
		return AttachmentID;
	}

	public void setAttachmentID(Integer attachmentID) {
		AttachmentID = attachmentID;
	}

	@Override
	public boolean equals(Object arg0) {
		if (arg0 == null)
			return false;
		if (!(arg0 instanceof CO_Item_AttachmentPK))
			return false;
		CO_Item_AttachmentPK arg1 = (CO_Item_AttachmentPK) arg0;
		return (this.CO_ID.intValue() == arg1.getCO_ID().intValue())
				&& (this.LineNum.intValue() == arg1.getLineNum().intValue() && this.AttachmentID
						.intValue() == arg1.getAttachmentID().intValue());
	}

	@Override
	public int hashCode() {
		int hsCode;
		hsCode = CO_ID.hashCode();
		hsCode = 19 * hsCode + LineNum.hashCode();
		hsCode = 19 * hsCode + AttachmentID.hashCode();
		return hsCode;
	}
}
